package com.pig4cloud.pig.environment.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 阈值
 *
 * @author joyql
 * @date 2024-01-15 15:56:13
 */
@Data
@TableName("threshold")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "阈值")
public class ThresholdEntity extends Model<ThresholdEntity> {


	/**
	* 主键
	*/
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description="主键")
    private Long id;

	/**
	* 因子
	*/
    @Schema(description="因子")
    private Long factorId;

	/**
	* 因子代码
	*/
    @Schema(description="因子代码")
    private String factorCode;

	/**
	 * 因子
	 */
	@Schema(description="因子")
	private String factorName;

	/**
	* 报警值
	*/
    @Schema(description="报警值")
    private BigDecimal alarmVal;

	/**
	* 创建人
	*/
	@TableField(fill = FieldFill.INSERT)
    @Schema(description="创建人")
    private String createBy;

	/**
	* 创建时间
	*/
	@TableField(fill = FieldFill.INSERT)
    @Schema(description="创建时间")
    private LocalDateTime createTime;

	/**
	* 更新人
	*/
	@TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description="更新人")
    private String updateBy;

	/**
	* 修改时间
	*/
	@TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description="修改时间")
    private LocalDateTime updateTime;
}